package com.kingtop.base.model;

import org.kingtop.model.IUserAuthorityPO;
import org.kingtop.mybatis.persistence.Column;
import org.kingtop.mybatis.persistence.Id;
import org.kingtop.mybatis.persistence.Table;

/**
 * 用户权限表
 * @author Administrator
 * @version 1.0
 * @created 2017-12-17 22:10:58
 */
@Table(name="T_BASE_USER_AUTHORITY")
public class BaseUserAuthority implements IUserAuthorityPO {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8189990136546324511L;

	@Id
	@Column(name="ID")
	private Long id;
	
	/**
	*	用户ID
	*/
	@Column(name="USER_ID")
	private Long userId;
	
	/**
	*	权限ID
	*/
	@Column(name="AUTHORITY_ID")
	private Long authorityId;
	

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "BaseUserAuthority [id=" + id + ", userId=" + userId + ", authorityId=" + authorityId + "]";
	}

	public BaseUserAuthority(){
		
	}
	
	public void setId(Long id)
	{
		this.id = id;
	}
	
	public Long getId()
	{
		return this.id;
	}
	
	public void setUserId(Long userId)
	{
		this.userId = userId;
	}
	
	public Long getUserId()
	{
		return this.userId;
	}

	public void setAuthorityId(Long authorityId)
	{
		this.authorityId = authorityId;
	}
	
	public Long getAuthorityId()
	{
		return this.authorityId;
	}

}